<template>
  <div class=''>
    <basepannel 
      comname="plotpannel"
      comtitle="标绘"
      :w="315"
      :h="624"
      :x="panelX"
      :y="panelY"
    >
      <plotcom ref="plotcom" />
    </basepannel>
  </div>
</template>
<script >
import basepannel from '../basepannel/index.vue';
import plotcom from './plotcom.vue'

export default {
  name: '',
  props: {
    options: {
      type: Object,
      default: () => ({
        top: 100,
        right: 400
      })
    }
  },
  components: {
    basepannel,
    plotcom,
  },
  data() {
    return {
    };
  },
  computed: {
    panelX() {
      return document.body.clientWidth - this.options.right
    },
    panelY() {
      return this.options.top
    }
  },
  watch: {
    
  },
  mounted() {
    
  },
  methods: {
    closewindow(){
      this.$refs.plotcom.closewindow()
    }
  },
}
</script>
<style lang='scss' scoped>

</style>